﻿using System;

namespace Skywalker.Fluently.Tests.Fakes
{
    public class TestComponentBuilder : Builder<TestComponent, TestComponentBuilder>
    {
        public TestComponentBuilder SetTestProperty(int value)
        {
            return SetProperty(x => x.TestProperty = value);
        }

        public TestComponentBuilder AddItem(object value)
        {
            return AddItem(x => x.Items, value);
        }

        public TestComponentBuilder CreateBuilder()
        {
            return CreateBuilder<TestComponentBuilder>();
        }

        public TestComponentBuilder ExecuteBuilder(Action<TestComponentBuilder> setup)
        {
            return ExecuteBuilder(this, setup);
        }

        public TestComponentBuilder CreateAndExecuteBuilder(Action<TestComponentBuilder> setup)
        {
            return base.CreateAndExecuteBuilder(setup);
        }
    }
}
